package com.hunter.download.queue;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * @author SnowDragon
 * @date 2021/12/7
 * @since v1.0.0
 * Description:
 */
public final class ThreadConfig {

    private final static AtomicInteger THREAD_ID_GENERATOR = new AtomicInteger(1);

    public static int getUniqueThreadId() {
        return THREAD_ID_GENERATOR.getAndIncrement();
    }

}